package com.water.app.mapper;

import com.water.app.address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface addressMapper {
    public List<address> selectAddressByUserId(int userId);

    public int insertAddress(String address, int userId,String email,String name);

    public boolean reviseAddress(address address, Integer userId);

    public int deleteById(int id);

    public Integer selectAddressNumberByUserId(int userId);
}
